import request from "@/utils/request";
import cktDesign from "@chuangkit/chuangkit-design";
import React, { useCallback } from "react";

function getOption() {
  return request('/api/ai/sign/ket')
}




export function useChuangKetDialog() {

  const handleOpen = useCallback(() => {
    getOption().then(p => {
      const design = new cktDesign(p.data);
      design.openPcIframe();
      
    })
  }, [])

  return {
    handleOpen
  }
}